package com.itheima.service;

import com.itheima.domain.Permission;
import com.itheima.domain.Role;

import java.util.List;

public interface RoleService {
    public List<Role> findAll() throws Exception;


    public  void addRole(Role role)throws Exception;

    public  Role findById(Integer roleId)throws Exception;

    public  List<Permission> findOtherPermission(Integer roleId)throws Exception;

    void addPermissionToRole(Integer roleId, Integer[] permissionIds);
}
